﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Shougonggeng: NPC
    {
        int key;
        public Shougonggeng(string name, NPCType nPC) : base(name, nPC) { }
        public override void Speak()
        {
            Console.WriteLine(this.Name + ":");
            Console.WriteLine("我是铁匠类NPC，需要我给你制造一个倒立洗头机吗？");
            Console.WriteLine("请选择：1、好的  2、不用了，谢谢！");
            key = int.Parse(Console.ReadLine());
            switch (key)
            {
                case 1:
                    Console.WriteLine("请稍等！");
                    break;
                case 2:
                    Console.WriteLine("好的！下次见！");
                    break;
                default:
                    Console.WriteLine("下次见！");
                    break;
            }
        }
    }
}
